﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Program
    {
        public struct PersonStruct
        {
             public string name;
             public string telephone;
             public string area;
        }
        static void Main(string[] args)
        {
            PersonStruct p1 = new PersonStruct();
            p1.name = "卢本伟";
            p1.telephone = "13174560712";
            p1.area = "地球";

            PersonStruct p2 = new PersonStruct();
            p2 = p1;
            p2.name = "刘谋";
            Console.WriteLine("p1.name="+p1.name+"\t"
                + "p1.telephone="
                +p1.telephone+"\t"+"p1.area="+p1.area);

            PersonClass p3 = new PersonClass();
            p3.Name = "粉红豹";
            p3.Telephone = "110";
            p3.Area = "你心里";

            PersonClass p4 = new PersonClass();
            p4 = p3;
            p4.Name = "粉红豹无了";
            Console.WriteLine("p3.name=" + p3.Name + "\t"
                + "p3.telephone="
                + p3.Telephone + "\t" + "p3.area=" + p3.Area);

        }
    }
}
